package oracle.lime.springboot2x;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Repository;

/**
 * @author liangmy
 */
@SpringBootApplication
@MapperScan(
		// 指定扫描包
		basePackages = "oracle.lime.springboot2x.chapter5.*",
		// 指定SqlSessionFactory,如果sqlSessionTemplate被指定，则作废
		sqlSessionFactoryRef = "sqlSessionFactory",
		//指定sqlSessionTemplate,将忽略sqlSessionFactory的配置
		sqlSessionTemplateRef = "sqlSessionTemplate",
		// markerInterface = Class.class, // 限定扫描接口，不常用
		annotationClass = Repository.class
)
public class Springboot2xApplication {

	public static void main(String[] args) {
		SpringApplication.run(Springboot2xApplication.class, args);
	}

}
